package com.lagou.edu.service.impl;

import com.lagou.edu.dao.BillMapper;
import com.lagou.edu.pojo.Bill;
import com.lagou.edu.pojo.BillDetail;
import com.lagou.edu.service.BillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Service
@Transactional
public class BillServiceImpl implements BillService {

    @Autowired
    private BillMapper billMapper;


    @Override
    public void addBill(Bill bill) {
        billMapper.addBill(bill);
    }

    @Override
    public Bill queryBill(String billNum) {
        return billMapper.queryBill(billNum);
    }

    @Override
    public List<Bill> queryBillList(Map<String, Object> map) {
        return billMapper.queryBillList(map);
    }

    @Override
    public void deleteBill(String billNum) {
        billMapper.deleteBill(billNum);
    }
}
